import React from 'react';

import Home from '@/screens/home';
import Plus from '@/screens/home/components/Plus';
import Transaction from '@/screens/transaction';
import Profile from '@/screens/profile';
import Order from '@/screens/order';
import {Text} from 'react-native';
import OrderDetail from '@/screens/OrderDtail';

/* 系统主路由（底部5个按钮） */
export const tabLabelIconConfig = {
  Home: {
    label: '首页',
    icon: 'home',
    component: Home,
  },
  Transaction: {
    label: '交易',
    icon: 'shoppingcart',
    component: Transaction,
  },
  Add: {
    screen: () => null,
    navigationOptions: {
      tabBarLabel: <Text />,
      tabBarIcon: <Plus />,
      tabBarOnPress: () => {
        console.log('tabBarOnPress');
      },
    },
  },
  Order: {
    label: '订单',
    icon: 'codepen',
    component: Order,
  },
  Profile: {
    label: '我的',
    icon: 'profile',
    component: Profile,
  },
};

/**
 * 一般路由页面
 */
export const screenRoutes = {
  OrderDetail,
};
